package com.mdb.open.trade.domain.po.product;

import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
* 类描述：
*  业务参数字典表实体类
*
* @author liuyi
* @date 2019-07-13
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dict")
public class Dict extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
     * 字典项ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属应用
     */
    private String app;

    /**
     * 暴露模块
     */
    private String module;

    /**
     * 字典项CODE
     */
    private String code;

    /**
     * 字典项描述
     */
    private String text;

    /**
     * 语言
     */
    private String lang;

    /**
     * 内容
     */
    @TableField(value = "items")
    private String items;

    /**
     * 创建者ID
     */
    @TableField(value = "create_user_id", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserId;

    /**
     * 创建者
     */
    @TableField(value = "create_user_name", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserName;

    /**
     * 操作人No
     */
    @TableField("opt_user_id")
    private String optUserId;

    /**
     * 操作人name
     */
    @TableField("opt_user_name")
    private String optUserName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
